package yb.ecp.fast.infra.constants;

public enum AccessLabel {
    //该访问无法访问任何系统接口，目前无应用场景
    DenyAll("最低权限",0),
    Client("客户端访问",1),
    Oauth2("Oauth2 服务器访问",2),
    Inner("内部服务调用",3),
    //一般只作为测试用
    FullTrusted("信任域访问",100)
    ;

    private String name ;
    private int levelNum;

    AccessLabel(String name, int levelNum) {
        this.name = name;
        this.levelNum = levelNum;
    }

    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public int getLevelNum() {
        return levelNum;
    }
    public void setLevelNum(int levelNum) {
        this.levelNum = levelNum;
    }
}
